/*
ont-space - The ontology-based resource metadata repository
Copyright (c) 2006-2008, Information Eng. Research Unit - Univ. of Alcalá
http://www.cc.uah.es/ie
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 2.1 of the License, or (at your option)
any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
details.
You should have received a copy of the GNU Lesser General Public License along
with this library; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */
package org.ontspace.oki.owl;

import java.io.Serializable;
import org.osid.repository.AssetIterator;
import org.osid.repository.Part;
import org.osid.repository.PartIterator;
import org.osid.repository.Record;
import org.osid.repository.RecordIterator;
import org.osid.repository.RecordStructure;
import org.osid.repository.RecordStructureIterator;
import org.osid.repository.RepositoryException;
import org.osid.shared.Id;
import org.osid.shared.ObjectIterator;
import org.osid.shared.Type;
import org.ontspace.owl.QueryResultImpl;

/**
 * Manages the OspaceOKIAsset
 */
public class OspaceOKIAssetImpl implements org.osid.repository.Asset {

    QueryResultImpl r;

    /**
     * Creates a new instance of OspaceOKIAssetImpl
     * @param results the LOMQueryResult
     */
    public OspaceOKIAssetImpl(QueryResultImpl results) {
        r =
                results;
    }

    public void updateDisplayName(String arg0) throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void updateEffectiveDate(long arg0) throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void updateExpirationDate(long arg0) throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public String getDisplayName() throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public String getDescription() throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public Id getId() throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public Type getAssetType() throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public long getEffectiveDate() throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public long getExpirationDate() throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void updateDescription(String arg0) throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public Id getRepository() throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public Serializable getContent() throws RepositoryException {
        return (Serializable) r.getMetadataRecordReference();
    }

    public void updateContent(Serializable arg0) throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void addAsset(Id arg0) throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void removeAsset(Id arg0, boolean arg1) throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public AssetIterator getAssets() throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public AssetIterator getAssetsByType(Type arg0) throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public Record createRecord(Id arg0) throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void inheritRecordStructure(Id arg0, Id arg1) throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void copyRecordStructure(Id arg0, Id arg1) throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void deleteRecord(Id arg0) throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public RecordIterator getRecords() throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public RecordIterator getRecordsByRecordStructure(Id arg0) throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public RecordIterator getRecordsByRecordStructureType(Type arg0) throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public RecordStructureIterator getRecordStructures() throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public RecordStructure getContentRecordStructure() throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public Record getRecord(Id arg0) throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public Part getPart(Id arg0) throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public Serializable getPartValue(Id arg0) throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public PartIterator getPartsByPartStructure(Id arg0) throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public ObjectIterator getPartValuesByPartStructure(Id arg0) throws RepositoryException {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
